
/*
 *  Copyright 2007 Marc Lanctot and Marc Gendron-Bellemare
 *
 *  This file is part of OpenMTG.
 *
 *  OpenMTG is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  OpenMTG is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with OpenMTG.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

public abstract class UI extends Thread
{
  protected Client client; 
  protected GameState state; 
  protected Player me;
  
  protected static boolean color = true; 

  public UI(Client client)
  {
    this.client = client; 
  }
  
  public UI(Client client, GameState state, Player me)
  {    
    this.client = client; 
    this.state = state; 
    this.me = me;
  }

  public void setState(GameState state) 
  { this.state = state; }
  
  public void setPlayer(Player me) 
  { this.me = me; }
  
  public abstract void handleEvent(String s);
  public abstract void showMsg(String msg);

}


